﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TodoApp.ResultModel;
using Volo.Abp.Application.Services;

namespace TodoApp.TMS_Basics.TMS_cargoowner
{
    public class TMS_cargoownerAppService : ApplicationService
    {
        private readonly ITMS_cargoownerModel _ITMS_cargoownerModel;
        public TMS_cargoownerAppService(ITMS_cargoownerModel ITMS_cargoownerModel)
        {
            _ITMS_cargoownerModel = ITMS_cargoownerModel;
        }

        public async Task<PageResponse<TMS_cargoownerDto>> GetCar(string B_name, string B_phone, int pageindex = 1, int pagesize = 5)
        { 
            return await _ITMS_cargoownerModel.GetCar(B_name, B_phone, pageindex, pagesize);
        }

        public async Task<int> Createcargoow(TMS_cargoownerDto info) { 
            return await _ITMS_cargoownerModel.Createcargoow(info);
        }

        public async Task<int> Deletecardel(string Id) { 
            return await _ITMS_cargoownerModel.Deletecardel(Id);
        }
    }
}
